home *** CD-ROM | disk | FTP | other *** search
/ Freelog 70 / Freelog070.iso / Internet / EasyPHP / easyphp1-8_setup.exe / {app} / home / phpinfo.php < prev    next >
Encoding:
PHP Script  |  2003-03-28  |  2.2 KB  |  71 lines

  1. <?php
  2. ob_start();
  3. phpinfo();
  4. $info = ob_get_contents();
  5. ob_end_clean();
  6. preg_match_all("=<body[^>]*>(.*)</body>=siU", $info, $tab);
  7. $val_phpinfo = $tab[1][0];
  8. ?>
  9. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  10. <html>
  11. <head>
  12. <style type="text/css"><!--
  13. body {background-color: #ffffff; color: #000000;}
  14. body, td, th, h1, h2 {font-family: sans-serif;}
  15. pre {margin: 0px; font-family: monospace;}
  16. a:link {color: #000099; text-decoration: none;}
  17. a:hover {text-decoration: underline;}
  18. table {border-collapse: collapse;}
  19. .center {text-align: center;}
  20. .center table { margin-left: auto; margin-right: auto; text-align: left;}
  21. .center th { text-align: center; !important }
  22. td, th { border: 0px solid #525A73; font-size: 75%; vertical-align: baseline;}
  23. h1 {font-size: 150%;}
  24. h2 {font-size: 125%;}
  25. .p {text-align: left;}
  26. .e {background-color: #ccccff; font-weight: bold;}
  27. .h {background-color: #9999cc; font-weight: bold;}
  28. .v {background-color: #cccccc;}
  29. i {color: #666666;}
  30. hr {width: 600px; align: center; background-color: #cccccc; border: 0px; height: 1px;}
  31. //--></style>
  32. <title>[EasyPHP] - Administration</title>
  33. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  34. <link rel="stylesheet" href="styles.css" type="text/css">
  35. </head>
  36.  
  37. <body>
  38. <?php
  39. $titre = "phpinfo";
  40. function bouton($word){
  41.     $lenght=strlen($word);
  42.     $start = 0;
  43.     print("<table border='0' cellspacing='0' cellpadding='0'>");
  44.     print("<tr><td><img src='images_easyphp/bouton_gauche.gif' width='4' height='26'></td><td background='images_easyphp/bouton_fond.gif'>"); 
  45.     while($start<$lenght){
  46.         $car=substr($word,$start,1);
  47.         print("<img src='images_easyphp/lettre_".$car.".gif' border='0'>");
  48.         $start++;
  49.     } 
  50.     print("</td><td><img src='images_easyphp/bouton_droit.gif' width='4' height='26'></td></tr></table>");
  51. }
  52. ?>
  53.  
  54. <table width="400" cellspacing="0" cellpadding="0" border="0" align="center">
  55. <tr>
  56. <td>
  57. <a href="index.php"><img src="images_easyphp/titre_easyphp_admin.gif" width="387" height="116" border="0"></a>
  58. </td>
  59. </tr>
  60. <tr>
  61. <td>
  62. <?php bouton($titre) ?>
  63. </td>
  64. </tr>
  65. </table>
  66.  
  67. <br><br>
  68.  
  69. <?php echo "$val_phpinfo"; ?> 
  70. </body> 
  71. </html>